<?php

if ($handle = opendir('uploads')) {

	/* This is the correct way to loop over the directory. */
	while (false !== ($entry = readdir($handle))) {
		if ($entry != ".." && $entry != ".")
			echo '<img src="http://zazou.heliohost.org/admin/uploads/' . $entry . '" />';
	}

	closedir($handle);
}
?>